package com.czh.auth.application.convert;

import com.czh.auth.api.entity.AuthUserDTO;
import com.czh.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author caozaihui
 * @version 1.0
 * @since 2024/8/28 上午 9:37
 */
@Mapper
public interface AuthUserConverter {
    AuthUserConverter INSTANCE = Mappers.getMapper(AuthUserConverter.class);

    AuthUserBO convert(AuthUserDTO authUserDTO);

    AuthUserDTO convert(AuthUserBO userInfo);

    List<AuthUserDTO> convert(List<AuthUserBO> authUserBOS);
}
